package com.heima.admin.controller.v1;

import com.heima.admin.channelControllerApi.AdUserControllerApi;
import com.heima.admin.service.AdUserService;
import com.heima.model.common.dtos.AdUserDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/login")
public class AdUserController implements AdUserControllerApi {

    @Autowired
    private AdUserService adUserService;

    @PostMapping("/in")
    @Override
    public ResponseResult login(@RequestBody AdUserDto adUserDto) {
        return adUserService.login(adUserDto);
    }


}
